#pragma once

#include <iostream>
#include "./req_files/add_req.pb.h"
#include "./res_files/add_res.pb.h"
#include "./req_files/find_one_req.pb.h"
#include "./res_files/find_one_res.pb.h"
#include "./res_files/find_all_res.pb.h"
#include "./req_files/del_req.pb.h"
#include "./res_files/del_res.pb.h"

class ContactsServer
{

public:
    void addContact();
    void delContact();
    void findContacts();
    void findContact();

private:
    void BuildAddContactRequest(add_contact_req::AddContactRequest *req);//给用户输入填充request
    void PrintFindContactPeople(find_one_res::FindOneContactResponse resp);//查找某个人根据uid与名字对应关系
    void printAllContactPeople(find_all_contacts_resp::FindAllContactsResponse resp);//打印对应的id+name方便用户一一查找（查找的话先调用它；然后再找）
};